﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="MissionDetails.aspx.cs" Inherits="IL2SWA.MissionDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h1>Mission Details</h1>
    <asp:ListBox ID="MissionDetailsList" runat="server" AutoPostBack="true"
        onselectedindexchanged="MissionDetailsList_SelectedIndexChanged"></asp:ListBox> 
    <p>
        <asp:Label ID="SelectedMission" runat="server" Text="Label"></asp:Label>
    </p>
    <h3> <asp:Label ID="MissionDetailsLabel" runat="server" Text=""></asp:Label></h3>
    <p> 
        <asp:GridView ID="MissionHighLevelView" runat="server" emptydatatext="<%$ Resources:Strings, NoMissionOverviewData %>" autogeneratecolumns="false">
         <columns>
            <asp:BoundField HeaderText="<%$ Resources:Strings, MissionName %>"  DataField="MissionName" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, MissionDate %>" DataField="MissionGameDateTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, FlownOn %>" DataField="MissionFlow" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, Map %>" DataField="MissionMap" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, GroundDestroyed %>" DataField="TotalGndDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, BridgesDestroyed %>" DataField="TotalBridgesDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, AirDestroyed %>" DataField="TotalAirDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, CloudType %>" DataField="CloudType" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, CloudHeight %>" DataField="CloudHeight" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, Gust %>" DataField="Gust" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, Turbulence %>" DataField="Turbulence" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
         </columns>
          <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
        </asp:GridView>
    </p>
     <p> 
        <asp:GridView ID="MissionHighLevelViewBlueRed" runat="server"  
            emptydatatext="<%$ Resources:Strings, NoMissionOverviewData %>" autogeneratecolumns="False">
            <columns>
             <asp:ImageField HeaderText ="Side" DataImageUrlField="Side"><ItemStyle HorizontalAlign="Center"></ItemStyle></asp:ImageField>                          
             <asp:BoundField HeaderText="<%$ Resources:Strings, NumberOfPilots %>" DataField="NumberOfPilots" 
                    ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, NumberOfBluePilots %>" DataField="NumberOfBluePilots" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, NumberOfRedPilots %>" DataField="NumberOfRedPilots" 
                    ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalTakeOffs %>" DataField="TotalTakeOffs" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalGndDestroyed %>" DataField="TotalGndDestroyed" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalAirDestroyedHuman %>" 
                    DataField="TotalAirDestroyedHuman" ItemStyle-HorizontalAlign="Center" 
                    >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalAirDestroyedAI %>" 
                    DataField="TotalAirDestroyedAI" ItemStyle-HorizontalAlign="Center" 
                    >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalBridgesDestroyed %>" DataField="TotalBridgesDestroyed" 
                    ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, TotalFlightTime %>" DataField="TotalFlightTime" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>        
            </columns>
             <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
        </asp:GridView>
    </p>
    <h3></h3>
    <p>
     <asp:GridView ID="MissionActionDetails" runat="server" emptydatatext="<%$ Resources:Strings, NoMissionActionData %>" autogeneratecolumns="false">
         <columns>
            <asp:HyperLinkField HeaderText="<%$ Resources:Strings, PlayerName %>" DataNavigateUrlFields="PlayerName" DataNavigateUrlFormatString="~/PlayerDetails.aspx?PlayerName={0}" DataTextField="PlayerName" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>                         
            <asp:BoundField HeaderText="<%$ Resources:Strings, MissionAction %>" DataField="PlayerAction" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, Attacked %>" DataField="AttackedPlayer" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, Object %>" DataField="AttackedObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, FlightTime %>" DataField="FlightTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField HeaderText="<%$ Resources:Strings, LogTime %>" DataField="EventTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
         </columns>
          <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
        </asp:GridView>
    </p>
   

</asp:Content>
